﻿CREATE TRIGGER LoanInstallmentPayments_Tracking_Delete
ON [dbo].[LoanInstallmentPayments] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanInstallmentPayments_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanInstallmentPayments_Tracking s JOIN DELETED i
    ON s.LoanInstallmentPaymentID = i.LoanInstallmentPaymentID
END











